﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="ZjrbManage.aspx.cs" Inherits="Enterprise.UI.Web.Modules.ZuanjingRb.ZjrbManage"  ValidateRequest="false" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<link rel="stylesheet" type="text/css" href="../../Styles/css/ssec-form.css"/>  
<link rel="stylesheet" type="text/css" href="../../Styles/css/gridview.css" />
<script charset="utf-8" src="../../kindeditor-4.1.1/kindeditor.js" type="text/javascript"></script>    
 <script charset="utf-8" src="../../kindeditor-4.1.1/lang/zh_CN.js" type="text/javascript"></script>
<script type="text/javascript">
        var rb;
        var bz;
        KindEditor.ready(function (K) {
            editorrb = K.create('#tb_rb', { uploadJson: '/kindeditor-4.1.1/upload/upload_json.ashx', items: ['insertfile'] });
            editorbz = K.create('#tb_bz', { uploadJson: '/kindeditor-4.1.1/upload/upload_json.ashx' });
        });
        </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainPH" runat="server">
    <div class="toolbars">
        <a class="easyui-linkbutton"  iconCls="icon-toolbar" plain="true"  href="/Modules/ZuanjingRb/ZjrbManage.aspx" >钻井日报管理</a>
        <a class="easyui-linkbutton"  iconCls="icon-toolbar" plain="true" href="/Modules/ZuanjingRb/ZjrbTJ.aspx">钻井日报曲线查询</a>
        <a class="easyui-linkbutton"  iconCls="icon-toolbar" plain="true" href="/Modules/ZuanjingRb/Zjrblr.aspx">钻井日报数据查询</a>
    </div>
    <div style="padding:5px;">
    请选择日期：<asp:DropDownList ID="ddl_rq" runat="server" CssClass="easyui-combobox" ></asp:DropDownList>
        <asp:Button ID="btn_search" runat="server" Text="确定"  CssClass="button2"      onclick="btn_search_Click" />
            </div>
    <asp:GridView ID="gv" runat="server" AutoGenerateColumns="False" 
        onselectedindexchanged="gv_SelectedIndexChanged">

    <Columns>
                <asp:BoundField DataField="ZJRQ" HeaderText="日期" />
                <asp:BoundField DataField="JH" HeaderText="井号" >
                <ItemStyle Wrap="False" />
                </asp:BoundField>
                <asp:BoundField DataField="ZJJC" HeaderText="进尺" >
                <ItemStyle Wrap="False" />
                </asp:BoundField>
                <asp:BoundField DataField="ZJRB" HeaderText="日报" HtmlEncode="False" >
                <ItemStyle Wrap="False" />
                </asp:BoundField>
                <asp:BoundField DataField="ZJZT" HeaderText="状态" />
                <asp:TemplateField HeaderText="备注">
                    <EditItemTemplate>
                        <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("BZSM") %>'></asp:TextBox>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="Label1" runat="server" Text='<%# Bind("BZSM") %>'></asp:Label>
                    </ItemTemplate>
                    <ItemStyle HorizontalAlign="Left" Width="500px" />
                </asp:TemplateField>
                <asp:CommandField SelectText="修改" ShowSelectButton="True" ButtonType="Image" 
                   SelectImageUrl="~/easyui1.2.6/themes/icons/pencil.png"  >       
               <ItemStyle Width="50px" />
               </asp:CommandField>
            </Columns>
    </asp:GridView>
    <asp:HiddenField ID="hzjrq" Value="" runat="server" ClientIDMode="Static" />
    <asp:HiddenField ID="hzjjh" Value="" runat="server" ClientIDMode="Static" />
    <div id="contents" class="ssec-form">
    
         <div class="ssec-group ssec-group-hasicon"><img src="../../easyui1.2.6/themes/icons/application.png" alt=""/><span>新增日报</span></div>

            <ul>
        <li><div class="ssec-label">日期：</div></li>
        <li><div>
            <asp:TextBox ID="tb_rq" runat="server" CssClass="easyui-datebox"></asp:TextBox></div></li>
               </ul>  
               <ul>
        <li><div class="ssec-label">井号：</div></li>
        <li><div><asp:TextBox ID="tb_jh" runat="server"></asp:TextBox></div></li>
  </ul>
   <ul>
        <li><div class="ssec-label">进尺(M)：</div></li>
        <li><div>
            <asp:TextBox ID="tb_jc" runat="server"  class="easyui-numberbox"></asp:TextBox></div></li>
   </ul>    
   <ul>
        <li><div class="ssec-label">日报：</div></li>
        <li><div><asp:TextBox ID="tb_rb" runat="server" ClientIDMode="Static" Width="600"></asp:TextBox></div></li>
</ul>
<ul>
        <li><div class="ssec-label">备注：</div></li>
        <li><asp:TextBox ID="tb_bz" runat="server"  ClientIDMode="Static" Width="600"></asp:TextBox></li>
</ul>
<ul>
        <li><div class="ssec-label">状态：</div></li>
        <li>
            <asp:DropDownList ID="ddl_zt" runat="server">
                <asp:ListItem Text="正常" Value="1"></asp:ListItem>
                <asp:ListItem Text="异常" Value="0"></asp:ListItem>
            </asp:DropDownList>
        </li>
</ul>
<ul>
 <li><div class="ssec-label"></div></li>
<li>
    <asp:Button ID="btn_Save" runat="server" 
        OnClientClick="editorrb.sync();editorbz.sync();" Text="保存"  CssClass="button2" 
        onclick="btn_Save_Click" /></li>
</ul>

    </div>
</asp:Content>
